@RikiArgumentImport()
import 'package:example_package1/arg/package1_1arg.dart';
import 'package:example_package1/example_package1.dart';
import 'package:example_package1/router/example_package1_routes.dart';
import 'package:example_package1/util/widget_util.dart';
@RikiArgumentImport()
import 'package:flutter/material.dart';
import 'package:riki_router/riki_router.dart';

@RikiRoute(
  name: '/package1/1',
  routeName: 'package页面',
  pageRouteType: PageRouteType.cupertino,
)
class Package1_1Page extends StatelessWidget {
  final Package1_1Arg arg;

  const Package1_1Page({Key? key, required this.arg}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    RikiPage? route = RikiRouterDelegate.of(context).find(this);
    return Scaffold(
      appBar: buildAppBar('PACKAGE 1_1'),
      body: ListView(
        children: [
          Container(
            alignment: Alignment.center,
            height: 44,
            child: Text(route?.routeName ?? ''),
          ),
          buildListTile('跳转PACKAGE 1_2', () {
            RikiRouterDelegate.of(context).pushNamed(RikiRoutes.package12.name);
          }),
          buildListTile('跳转DEMO2，测试异常配置', () {
            RikiRouterDelegate.of(context).pushUri('/demo/2?text=package1_1跳转demo2&num=456');
          }),
        ],
      ),
    );
  }
}
